package com.hooya.fa.eu.biz.controller;

import com.hooya.fa.eu.biz.service.EuCheckService;
import com.hooya.integrated.common.core.util.R;
import com.hooya.integrated.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 审计检查
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/10/16
 * @Version 1.1.0
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "审计检查")
@RequestMapping("/eu/check")
public class EuCheckController {

    private final EuCheckService euCheckService;

    @GetMapping("/generator")
    @Inner(value = false)
    @Operation(summary = "检测库存记录是否正常【√】", description = "库存与库存对比表的差异对比")
    public R checkKcjl() {
        euCheckService.checkAndContrastKcjl();
        return R.ok();
    }
}
